<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>首页</title>
    <link rel="icon" href="/images/ico.png" type="image/x-icon">
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <script src="/js/bhudy.js"></script>
</head>
<body>
<div class="container-fluid">
    <div id="app"  class="row">
        <div class="col-md-12">
            <form id="ktrAddress" class="form-inline">
                <button id="search" type="button" class="btn btn-info" @click="loadTableData">搜 索</button>
            </form>
        </div>
        <div class="col-md-12">
            <button id="create" type="button" class="btn btn-info btn-sm" title="新建">
               <i class="glyphicon glyphicon-plus"></i>
            </button>
            <button id="import" type="button" class="btn btn-info btn-sm" title="导入">
                <i class="glyphicon glyphicon-import"></i>
            </button>
            <button id="export" type="button" class="btn btn-info btn-sm" title="导出">
                <i class="glyphicon glyphicon-export"></i>
            </button>
            <button id="delete" type="button" class="btn btn-danger btn-sm" title="删除">
                <i class="glyphicon glyphicon-trash"></i>
            </button>
        </div>
        <div class="col-md-12">
            <div class="table-responsive">
                <table class="table table-condensed table-hover">
                    <tr>
                        <th><input id="ktrId" type="checkbox"/></th>
                        <th>ktrName</th>
                        <th>ktrIp</th>
                        <th>ktrAddressType</th>
                        <th>ktrPort</th>
                        <th>ktrState</th>
                        <th>ktrTypeId</th>
                        <th>remark</th>
                        <th>status</th>
                        <th>updateDate</th>
                        <th>updateBy</th>
                        <th>createDate</th>
                        <th>createBy</th>
                        <th>*</th>
                    </tr>
                    <tr v-for="data in listData">
                        <td><input name="ktrId" class="ktrId" :value="data.ktrId" type="checkbox"/></td>
                        <td>{{data.ktrName}}</td>
                        <td>{{data.ktrIp}}</td>
                        <td>{{data.ktrAddressType}}</td>
                        <td>{{data.ktrPort}}</td>
                        <td>{{data.ktrState}}</td>
                        <td>{{data.ktrTypeId}}</td>
                        <td>{{data.remark}}</td>
                        <td>{{data.status}}</td>
                        <td>{{data.updateDate}}</td>
                        <td>{{data.updateBy}}</td>
                        <td>{{data.createDate}}</td>
                        <td>{{data.createBy}}</td>
                        <td>
                            <button type="button" class="btn btn-warning btn-sm btn-social-icon update-data" 
                                    :data-id="data.ktrId" title="修改"><i class="glyphicon glyphicon-wrench"></i></button>
                            <button type="button" class="btn btn-danger btn-sm btn-social-icon delete-data"
                                    :data-id="data.ktrId" title="删除"><i class="glyphicon glyphicon-trash"></i></button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>

</body>
<script>
    var id = "ktrId";
    var homeUrl = "/ktrAddresss";
    var tableName = "ktrAddress";
</script>
</html>
